const path = require('path');

let srcFolder = './v2/'
let mainFileName = 'index.js'

let srcFilesysFolder = './filesys/'
let mainFolderFileName = 'filesys.js'

let srcAdminFolder = './admin/'
let mainadminFolderFileName = 'admin.js'


let distFolder = './server/app/public/pc'


const { webpackCommonDef } = require('./webpack.admin')

module.exports = {
  mode: 'development',
  entry: {
    // index: srcFolder + mainFileName,
    // filesys: srcFilesysFolder + mainFolderFileName,
    admin: srcAdminFolder + mainadminFolderFileName
  },
  output: {
    filename: "[name]/[name].js",
    path: path.resolve(__dirname, distFolder),
  },
  ...webpackCommonDef
};
